package com.sykj.qianxuezhan.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sykj.qianxuezhan.bean.Shop;
import com.sykj.qianxuezhan.bean.ShopUser;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Author QianXuezhan
 * @Date 2020/7/18 23:43
 * @Description: TODO
 */
@Mapper
public interface ShopUserMapper extends BaseMapper<ShopUser> {

    /**
     * @Date:
     * @Description: 查询店主 综合查询
     **/
     List<ShopUser> queryShopUserDz(ShopUser shopUser);

     /**
      * @Date:
      * @Description: 添加店主
      **/
     void  saveShopUser(ShopUser shopUser);

     /**
      * @Date:
      * @Description:  删除店主信息 假删除,
      **/
     void updateShopUserDelId(Integer shopUserId);

     /**
      * @Date:
      * @Description:  向数据库中传入一个账号看是否有重复值
      **/
     ShopUser   queryCompare(String  account);

     /**
      * @Date:
      * @Description:  修改店主信息
      **/
     void  updateShopUserId(ShopUser shopUser);
 /**
  * @Description: 查询员工信息
  **/
 List<ShopUser>  queryShopUserYg(ShopUser shopUser);

    /**
     * @Description: 修改员工信息
     **/
    void  updateShopUserYg(ShopUser shopUser);
}
